package com.weisy.signin.network.utils;

import java.net.Socket;
import java.util.HashMap;
import java.util.Map;

/**
 * @author weisy
 * @function
 * @date 2019/3/22 20:29
 */
public class HttpContext {
    private final Map<String, String> requestHeader;
    public Socket underlySocket;

    public HttpContext() {
        requestHeader = new HashMap<>();
    }

    public void addRequestHeader(String key, String value) {
        requestHeader.put(key, value);
    }

    public String getRequestHeader(String key) {
        return requestHeader.get(key);
    }
}
